<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>大窗口|/static/html/web_data_form.html</title>
    <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/basic.css">
    <link rel="stylesheet" type="text/css" href="/static/css/ui.css">
    <link rel="stylesheet" type="text/css" href="/static/css/g.css">
    <link rel="stylesheet" href="/static/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="/static/css/common.css">
	<link rel="stylesheet" type="text/css" href="/static/css/folder.css">
	<link rel="stylesheet" type="text/css" href="/static/css/global.css">
	<link rel="stylesheet" type="text/css" href="/static/css/filelist.css">
	<style type="text/css">
	label{margin-bottom: 0;}
	</style>
</head>
<body>
<input type="hidden" id="h_which_path" value="">
<input type="hidden" id="h_dsId" value="">
<input type="hidden" id="h_config_id" value="">
<input type="hidden" id="h_backstrategy_id" value="">
    <div class="web-data-add web-data-form g-c3">
    	<form action="#">
    	<div class="g-pl20 g-pr20 g-pt15" id="folderDiv">
    		<h3 class="data-form-tit"><span>基本信息设置</span></h3>
	    		<table cellspacing="0" cellpadding="0" style="margin-top:10px;border-collapse:collapse;margin-left: 2%;" class="data-add-form" width="96%">
					<tr>
						<th><label for="#">路径：</label></th>
						<td colspan="5">
							<input type="hidden" id="dsType" />
							<input id="dsPath" type="text" disabled="disabled" class="file-input w550" >
							<input type="file" class="file-hidden">
							<!--<input id="selectPath" type="button" value="浏览" class="file-btn blue-btn">-->
							 <input id="selectPath" type="button" onclick="selectDsPath('','dsPath')" value="浏览" class="file-btn blue-btn">
						</td>
					</tr>
	    		</table>
    	</div>
    	
    	<div class="g-pl20 g-pr20 g-pt15" id="dbDiv">
    		<h3 class="data-form-tit"><span>数据库信息设置</span></h3>

	    		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;margin-left: 2%;" class="data-add-form" width="96%">
	    			<tr>
	    				<th width="105">数据库用户名：</th>
	    				<td width="240 "><input id="dbUsername" class="query" type="text" class="w230"></td>
	    				<th width="105">数据库密码：</th>
	    				<td width="240 "><input id="dbPassword" class="query" type="text" class="w230"></td>
	    			</tr>
					<tr>
	    				<th width="105">数据库名称：</th>
	    				<td width="240 "><input id="dbName" class="query" type="text" class="w230"></td>
	    				<th width="105">数据库类型：</th>
	    				<td width="240 ">
	    					<select name="" id="dbType" class="data-add-select query" style="width:240px;">
		    					<option value="0">MYSQL</option>
		    				</select>
	    				</td>
	    			</tr>
	    			<tr>
	    				<th width="105">数据库IP：</th>
	    				<td width="240 "><input id="dbHost" class="query" type="text" class="w230"></td>
	    				<th width="105">数据库端口：</th>
	    				<td width="240 "><input id="dbPort" class="query" type="text" class="w230"></td>
	    			</tr>
	    		</table>
    	</div>

    	<div class="g-pl20 g-pr20 g-pt15" id="bsDiv">
    		<h3 class="data-form-tit"><span>运行策略设置</span></h3>
    		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;margin-left: 2%;" class="data-add-form" width="96%">
    			<tr>
    				<th  width="105"><label for="#">开始时间：</label></th>
    				<td>
                        <input readonly="readonly" id="datetimepicker" class="file-input fl" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',
                            realDateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'%y-%M-%d %H:%m:%s',readOnly:true});$(this).val('')" style="width:210px;cursor:pointer;">

	    				<span class="g-pl10 g-pr5 fl" style="padding-top:3px;">时间间隔</span>
	    				<input id="period" type="text" class="fl" style="width:112px;" value="1">
	    				<select name="" id="unit" class="data-add-select g-ml10 fl" style="width:112px;">
	    					<option value="1">小时</option>
	    					<option value="2">天</option>
	    					<option value="3">周</option>
	    					<option value="4">月</option>
	    				</select>
	    				<span class="fl" style="padding-top:3px;">执行一次</span>
    				</td>
    			</tr>
    		</table>
    	</div>
    	<div class="g-pl20 g-pr20 g-pt15">
    		<h3 class="data-form-tit"><span>本地备份设置</span></h3>
    		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;margin-left: 2%;margin-top:10px;" class="data-add-form" width="96%">
    			<tr>
    				<!-- <th width="125"><label for="#">开启本地备份：</label></th> -->
    				<td>
    					<label class="lab-check">开启本地备份</label>
						<input id="isOpenLocalBackup" type="checkbox" name="">
    				</td>
    			</tr>
    		</table>
    	</div>
    	<div class="g-pl20 g-pr20 g-pt15">
    		<h3 class="data-form-tit"><span>数据安全等级设置</span></h3>
    		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;margin-top:10px; margin-left: 2%;" class="data-add-form" width="100%">
    			<tr>
    				<!-- <th width="150"><label for="#">需要key：</label></th> -->
    				<td>
    					<label class="lab-check">需要key</label>
						<input id="dsNeedKey" type="checkbox" name="">
    				</td>
    				<!-- <th  width="150"><label for="#">需要验证码：</label></th> -->
    				<td>
    					<label class="lab-check">需要验证码</label>
						<input id="dsNeedCode" type="checkbox" name="">
    				</td>
					<!-- <th  width="150"><label for="#">是否加密</label></th> -->
    			<!-- 	<td>
    					<label class="lab-check check-true">是否加密</label>
						<input id="isEncrypt" checked="checked" type="checkbox" name="">
    				</td> -->
    					<td>
    					<label class="lab-check check-true">加密</label>
						<input id="isEncrypt" checked="checked" disabled="disabled" type="checkbox" name="">
    				</td>
    				
    				
    			</tr>
    		</table>
    	</div>	
		<div class="btns">
			<button id="save" type="button" style="display:inline;" onclick="javascript:saveDataSource();" class="green-btn02  data-add-btn ">保存</button>
			<button type="button" style="display:inline;" onclick="javascript:historyGo();" class="green-btn02 data-add-btn btn-back ">返回</button>
		</div>
		</form>
    </div>
    <script src="/static/js/plugin/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="/static/js/plugin/WdatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/static/js/plugin/bootstrap.js" type="text/javascript"></script>
    <script src="/static/js/plugin/plugins.js" type="text/javascript"></script>
    <script src="/static/js/data/ajax.js" type="text/javascript"></script>
    <script src="/static/js/data/ebeim.js" type="text/javascript"></script>
    <script src="/static/js/logic/folder.js"></script>
    <script src="/static/js/plugin/jquery.ztree.core-3.5.js" type="text/javascript"></script>
    <script src="/static/js/data/global.js"></script>
    <script src="/static/js/logic/datasource_add.js"></script>
    

<div class="window" id="dsWindow">
	<div class="w-head">
		<table width="96%" align="center">
			<tr>
				<td width="17%" >文件夹根目录:<input type="hidden" id="h_ds_path" /></td>
				<td width="63%"><input id="ab-ds-dir" typr="text"/></td>
				<td width="20%" style="text-align:center"><button onclick="selectDsParentPath()">返回上一级</button></td>
			</tr>
		</table>
	</div>
	<div class="w-dir-tree">
		<ul id="pathTree" class="ztree"></ul>
	</div>
	<div class="w-dir-list">
		<ul>
		</ul>
	</div>
	<div class="w-dir-confirm">
		<button class="cancel" onclick="cancelDsDir()">取消</button>
		<button class="" onclick="confirmDsDir()">确定</button>
	</div>
</div>

<div class="shadowDiv" id="tips_shadowDiv" style="z-index: 1999;"></div>
<div class="dialogDiv" id="tips" style="z-index: 2000;">
	<div class="dialogTipDiv">提示<span class="dialogTipContentSpan">信息</span></div>
	<div class="dialogContentDiv" style="text-align: center;">
	</div>
</div>
</body>
</html>
